from django.db import models


# Create your models here.
# 为房源创建表
# 使用sqlite数据库

class Hosemsg(models.Model):
    title = models.CharField(verbose_name='房源标题', max_length=128, default='')
    communityname = models.CharField(verbose_name='小区名称', max_length=128, default='')
    longitude = models.CharField(verbose_name='经度', max_length=32, default='')
    latitude = models.CharField(verbose_name='纬度', max_length=32, default='')
    areaname = models.CharField(verbose_name='所在区域', max_length=128, default='')
    houserecord = models.CharField(verbose_name='链家编号', max_length=32, default='')
    roomtype = models.CharField(verbose_name='户型', max_length=32, default='')
    orientation = models.CharField(verbose_name='朝向', max_length=32, default='')
    area = models.CharField(verbose_name='面积', max_length=32, default='')
    unitprice = models.CharField(verbose_name='单价', max_length=32, default='')
    price = models.CharField(verbose_name='总价', max_length=32, default='')
    rid = models.CharField(verbose_name='rid', max_length=32, default='')
